package com.sld.concrete.algorithm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据查询对象 rec_dev_calculate
 * 
 * @author topviewers
 * @date 2022-04-16
 */
@Data
public class RecDevCalculate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String devId;

    /** 工作编号 */
    @Excel(name = "工作编号")
    private Long workId;

    /** 班次,例如：01，02，03 */
    @Excel(name = "班次,例如：01，02，03")
    private String workSequence;

    /** 压力 */
    @Excel(name = "压力")
    private Double pressure;

    /** 转速 */
    @Excel(name = "转速")
    private Double rotateSpeed;

    /** 湿度 */
    @Excel(name = "湿度")
    private Double humidity;

    /** 温度 */
    @Excel(name = "温度")
    private Double temperature;

    /** 算法ID */
    @Excel(name = "算法ID")
    private Long algorithmId;

    @Excel(name = "分组类型")
    private String groupType;

    /** 消息Id */
    @Excel(name = "消息Id")
    private String msgIds;

    /** 计算结果 */
    @Excel(name = "计算结果")
    private Integer calcResult;

    /** 计算入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "计算入库时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date insertTime;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("devId", getDevId())
            .append("workId", getWorkId())
            .append("workSequence", getWorkSequence())
            .append("pressure", getPressure())
            .append("rotateSpeed", getRotateSpeed())
            .append("humidity", getHumidity())
            .append("temperature", getTemperature())
            .append("algorithmId", getAlgorithmId())
            .append("msgIds", getMsgIds())
            .append("calcResult", getCalcResult())
            .append("insertTime", getInsertTime())
            .toString();
    }
}
